package com.xingkeduo.pojo.remote.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.xingkeduo.tool.ResponseUtils;
import com.xingkeduo.util.config.FeignConfig;

@FeignClient(value = "business-order", configuration = FeignConfig.class)
public interface OrderService {


    //根据用户id和cityid查询用户查上一单信息
    @GetMapping("/api/order/query/info")
    ResponseUtils getCratfsmanShop(@RequestParam(value = "userId")String userId, @RequestParam(value = "cityId")String cityId, @RequestParam(value = "sign")String sign);

    //根据用户id获取待支付的订单号
    @GetMapping("/api/order/query/nopay")
    ResponseUtils getNopayOrderNo(@RequestParam(value = "userId")String userId, @RequestParam(value = "sign")String sign);

    
    //根据用户id 店铺id 判断该店铺id是否是该用户上次服务的店铺 
    @GetMapping("/api/order/last/server")
    ResponseUtils isLastServerShops(@RequestParam(value = "userId")String userId, @RequestParam(value = "storeId")String storeId, @RequestParam(value = "sign")String sign);


    

}
